<template>
    <van-nav-bar :title="props.title"
        v-if="route.name == 'my' || route.name == 'list' || route.name == 'shop' || route.name == 'index'" />
    <van-nav-bar :title="props.title" v-else left-text="返回" left-arrow @click-left="onClickLeft" />

</template>

<script setup>
const onClickLeft = () => history.back();
import { useRoute, useRouter } from 'vue-router'

const router = useRouter()
const route = useRoute()
const props = defineProps(['title'])


</script>

<style lang="scss" scoped></style>